package com.huangkailong.designpattern.decarator;

/**
 * 煎饼鸡蛋装饰器
 *
 * @author huangkl
 * @since 1.0.0
 */
public class EggPancakeDecorator extends PancakeDecorator {
    public EggPancakeDecorator(Pancake pancake) {
        super(pancake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "加鸡蛋";
    }

    @Override
    public Double getPrice() {
        return super.getPrice() + 2.0;
    }
}
